package com.yuanfeng.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.payment.dto.ThirdAuthReturnDTO;
import com.yuanfeng.payment.dto.WithdrawRequestDTO;
import com.yuanfeng.payment.entity.PayFxAccountEntity;

import javax.servlet.http.HttpServletRequest;

/**
 *
 */
public interface PayFxAccountService extends IService<PayFxAccountEntity> {

    /**
     * 保存用户授权信息
     *
     * @param param
     * @return
     */
    ResponseResult updateUserAuthInfo(ThirdAuthReturnDTO param);


    /**
     * 用户提现
     *
     * @param param
     * @param request
     * @return
     */
    ResponseResult withdraw(WithdrawRequestDTO param, HttpServletRequest request);

}
